package com.gs.thunder.config.log;

import org.apache.log4j.PatternLayout;
import org.apache.log4j.spi.LoggingEvent;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/9/11 0011
 */
public class TracePatternLayout extends PatternLayout {

    @Override
    public String format(LoggingEvent event) {
        return Tracer.getTraceId() + "|" +
                super.format(event);
    }

}